package com.zcy.basic.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author lucker
 * @date 2023/11/29 19:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "分页列表", description = "PageList")
public class PageList<T> {

    @ApiModelProperty(value = "总条数")
    private Long total = 0L;

    @ApiModelProperty(value = "列表数据")
    private List<T> list = new ArrayList<>();
}
